package com.ruoyi.common.pms.dao;

import com.ruoyi.common.pms.entity.YytShop;
import com.ruoyi.common.pms.entity.YytShopMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* <p>
    *  Mapper 接口
    * </p>
*
* @author MrPing
* @since 2022-05-19
*/
@Repository
public interface YytShopMemberMapper extends BaseMapper<YytShopMember> {

    List<YytShop> getMyShopAll(@Param("wechatId") String wechatId);

    /**
     * 根据用户权限获取店铺
     * @param id
     * @return
     */
    List<String> getMyShopList(@Param("memberId") String id);

    /**
     * 获取我是店铺管理员的店铺列表
     * @param wechatId
     * @return
     */
    List<YytShop> isShopSys(@Param("wechatId") String wechatId);

    /**
     * 获取用户编号列表
     * @param shopId
     * @param authStatus
     * @return
     */
    List<String> getMemberIdByList(@Param("shopId") String shopId, @Param("authStatus") Integer authStatus);
}
